package com.ham.mud.state.edit;

import com.ham.mud.ServerConnection;
import com.ham.mud.state.ConnectionState;

/**
 * Created by hlucas on Jul 18, 2011 at 11:14:14 AM
 */
public class EditItemState extends ConnectionState {
    public EditItemState(ServerConnection connection) {
        super(connection);
        connection.println("Editing item.");
    }

    @Override
    public void processInput(String line) {
        if(line.equals("exit")) {
            connection.println("No longer editing item.");
            connection.changeState(new EditState(connection));
        }
    }

    @Override
    public void tick() {
        //To change body of implemented methods use File | Settings | File Templates.
    }
}
